package com.zhong.gang.app.utils.waidiaoimg;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.github.siyamed.shapeimageview.RoundedImageView;
import com.zhong.gang.app.R;
import com.zhong.gang.applib.utils.GlideUtils;

public class WaidiaoImgAdapter extends BaseQuickAdapter<WaidiaoImgAdapter.WaiDiaoImgBean, BaseViewHolder> {

    public WaidiaoImgAdapter() {
        super(R.layout.item_waidiao_detail_img);
    }

    @Override
    protected void convert(BaseViewHolder helper, WaiDiaoImgBean item) {
        RoundedImageView imageView = helper.getView(R.id.photo);
        GlideUtils.show(mContext,item.getImg(),imageView);
        helper.setText(R.id.title,item.getTitle());
    }

    public static class WaiDiaoImgBean{
        private String img;
        private String title;

        public WaiDiaoImgBean(String img, String title) {
            this.img = img;
            this.title = title;
        }

        public String getImg() {
            return img;
        }

        public String getTitle() {
            return title;
        }
    }
}
